import request from '@/utils/request'
import {praseStrEmpty} from "@/utils/ruoyi";

// 查询用户列表
export function listUserType(query) {
  return request({
    url: '/system/userType/list',
    method: 'get',
    params: query
  });
}

export function selectUserTypeById(userId) {
  return request({
    url: '/system/userType/' + userId,
    method: 'get'
  })
}

export function updateUserTypeById(data) {
  return request({
    url: '/system/userType/update',
    method: 'post',
    data: data
  })
}
export function addUserType(data) {
  return request({
    url: '/system/userType/add',
    method: 'post',
    data: data
  })

}
